##############################alias docker config##############################
alias docker_ps='docker ps -a'
alias docker_stop='docker stop'
alias docker_stop_all='docker stop $(docker ps -q)'
alias docker_rm='dockerRm(){ docker stop $(docker ps -f"name=^/$1$" -qa) ; docker rm $(docker ps -f"name=^/$1$" -qa);};dockerRm'
alias docker_rm_all='docker stop $(docker ps -q) ; docker rm $(docker ps -aq)'
alias docker_images='docker images'
##alias docker_rmi='docker rmi'
alias docker_rmi='dockerRmi(){ docker rmi -f $(docker images -q --filter reference=$1);};dockerRmi'
alias docker_exec='dockerExec(){ docker exec -it $1 /bin/bash ;};dockerExec'
alias docker_exec_root='dockerExec(){ docker exec -it --user root $1 /bin/bash ;};dockerExec'

alias docker_network_ls='docker network ls'
alias docker_network_create='docker network create'
alias docker_network_inspect='docker network inspect'
alias docker_network_rm='docker network rm'

alias docker_logs='docker logs --tail 10 -f'
alias docker_inspect='docker inspect'
alias docker_search='dockerSearch(){ docker ps -f"name=^/$1$" ;};dockerSearch'
alias docker_container_top='docker container top'
alias docker_jstat='dockerJstat(){ docker exec -it $1 /bin/bash -c "jstat -gc 1 1000";};dockerJstat'
alias docker_ip='docker inspect --format "{{ .NetworkSettings.IPAddress }}"'

# docker rmi -f  `docker images | grep '<none>' | awk '{print $3}'`



##############################alias docker config##############################


